﻿
(function ($, doc) {
    $.init();
    $.ready(function () {
        var userPicker = new $.PopPicker();
        userPicker.setData([{
            value: '',
            text: '支付宝'
        }, {
            value: '',
            text: '微信'
        }]);
        var showUserPickerButton = doc.getElementById('showUserPicker');
        var userResult = doc.getElementById('userResult');
        showUserPickerButton.addEventListener('tap', function (event) {
            userPicker.show(function (items) {
                userResult.innerText = JSON.stringify(items[0]);
            });
        }, false);
    });
})(jQuery, document);

(function ($, doc) {
    $.init();
    $.ready(function () {
        var userPicker = new $.PopPicker();
        userPicker.setData([{
            value: '',
            text: '现金'
        }, {
            value: '',
            text: '现金+积分'
        }]);
        var showUserPickerButton = doc.getElementById('showUserPickerthree');
        var userResult = doc.getElementById('userResult');
        showUserPickerButton.addEventListener('tap', function (event) {
            userPicker.show(function (items) {
                userResult.innerText = JSON.stringify(items[0]);
            });
        }, false);
    });
})(jQuery, document);

(function ($, doc) {
    $.init();
    $.ready(function () {
        var userPicker = new $.PopPicker();
        userPicker.setData([{
            value: '',
            text: '安徽'
        }, {
            value: '',
            text: '湖南'
        }]);
        var showUserPickerButton = doc.getElementById('showUserPickertwo');
        var userResult = doc.getElementById('userResult');
        showUserPickerButton.addEventListener('tap', function (event) {
            userPicker.show(function (items) {
                userResult.innerText = JSON.stringify(items[0]);
            });
        }, false);
    });
})(jQuery, document);
